package com.shopping.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.shopping.dao.OrderDao;
import com.shopping.po.Order;
import com.shopping.po.User;
import com.shopping.service.OrderService;

@Service
@Transactional
public class OrderServiceImpl implements OrderService{
	@Autowired
	private OrderDao orderDao;
	public List<Order> findOrderByAll(User user) {
		return this.orderDao.findOrderByAll(user);
	}
	
	public List<Order> findOrderByStatus(Map map){
		return this.orderDao.findOrderByStatus(map);
	}
}
